package com.awakensoftware.hunterserver.repositories;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.awakensoftware.hunterserver.serverentities.Hunter;

@Repository("hunterRepository")
@Scope("singleton")
@Transactional
public class HunterRepository extends ServerEntityRepositoryBase<Hunter> {

	@Override
	@Transactional(readOnly = true)	
	public Hunter getById(long id) {
		return entityManager.find(Hunter.class, id);
	}

}
